#-------------------------------------------------------------------
# This file is part of the CMake build system for ogre-url
#-------------------------------------------------------------------

# Customise what to build
option (SETUP_OGREURL_BUILD_DEMO "Build OgreURL Demo Application" TRUE)

# customize build mode
option (SETUP_OGREURL_BUILD_SHARED_LIBRARY "Build OgreURL shared library" TRUE)

#setup build mode
if (SETUP_OGREURL_BUILD_SHARED_LIBRARY)
	set(OGREURL_LIB_TYPE SHARED)
	set(OGREURL_STATIC_LIB FALSE)
else()
	set(OGREURL_LIB_TYPE STATIC)
	set(OGREURL_STATIC_LIB TRUE)
endif (SETUP_OGREURL_BUILD_SHARED_LIBRARY)

# generate OgreURLConfig.h
configure_file(${CMAKE_HOME_DIRECTORY}/CMake/Templates/OgreURLConfig.h.in ${CMAKE_BINARY_DIR}/include/OgreURLConfig.h)

# setup ogre demo root url
if (SETUP_OGREURL_BUILD_DEMO)
	set (SETUP_OGREURL_DEMO_TEST_URL "http:////localhost/ogreurldemo" CACHE PATH "The ogre testing url for demo project")
endif (SETUP_OGREURL_BUILD_DEMO)
